#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
#                         2011 ~ 2012 Xu Bin
#
# Author: Xu Bin <xosdeveloper@gmail.com>
# Maintainer: Xu Bin <xosdeveloper@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>

from db import cursor

import head

print "<b><a href='state.py'> State </a></b><br>"

print "==========================================<br>"

cursor.execute("SELECT id,name FROM CompileLog ORDER BY id DESC LIMIT 10")

for row in cursor.fetchall():
    print "[log]:<a href='content.py?logid=%s'>%s</a><br>" % (row[0],row[1])

import foot
